package com.eling.elcms.community.service.impl;

import com.eling.elcms.community.dao.IOrganizationDao;
import com.eling.elcms.community.model.Organization;
import com.eling.elcms.community.service.IOrganizationManager;
import com.eling.elcms.core.service.impl.GenericManagerImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrganizationManagerImpl extends GenericManagerImpl<Organization, Long> implements IOrganizationManager {
	
	IOrganizationDao organizationDao;
	
    @Autowired
    public void setOrganizationDao(IOrganizationDao dao) {
    	this.organizationDao=dao;
        this.dao = dao;
    }
    
    @Override
	public String queryTheme(Long pkUser){
    	return organizationDao.queryTheme(pkUser);
	}

	@Override
	public void insertOrganization(Organization organization) {
		 organizationDao.insertOrganization(organization);
	}

	@Override
	public boolean queryIsAllMenu(Long pkUser) {
		return organizationDao.queryIsAllMenu(pkUser);
	}
}
